<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

  <div>
    用户: <input type="text">
  </div>
  <div>
    密码: <input type="password">
  </div>
  <h1>label+input:</h1>
  <div>
    <label for="username">
      用户: <input type="text" id="username">
    </label>
  </div>
  <div>
    <label for="password">
      密码: <input type="password" id="password">
    </label>
  </div>

</body>

</html>